package model;

/**
 * VNotice entity. @author MyEclipse Persistence Tools
 */

public class VNotice implements java.io.Serializable {

	// Fields

		private Integer noticeid;
		private String title;
		private String authorcontact;
		private Integer noticetype;
		private String noticecontent;
		private String releasetime;
		private Integer visitornum;
		private Integer id;
		private String photoname;
		private String note;
		private String userid;
		private String realname;
		private String usernote;

		// Constructors

		/** default constructor */
		public VNotice() {
		}

		/** minimal constructor */
		public VNotice(Integer noticeid, String title, String authorcontact,
				Integer noticetype, String releasetime, Integer id,
				String photoname, String userid, String realname) {
			this.noticeid = noticeid;
			this.title = title;
			this.authorcontact = authorcontact;
			this.noticetype = noticetype;
			this.releasetime = releasetime;
			this.id = id;
			this.photoname = photoname;
			this.userid = userid;
			this.realname = realname;
		}

		/** full constructor */
		public VNotice(Integer noticeid, String title, String authorcontact,
				Integer noticetype, String noticecontent, String releasetime,
				Integer visitornum, Integer id, String photoname, String note,
				String userid, String realname, String usernote) {
			this.noticeid = noticeid;
			this.title = title;
			this.authorcontact = authorcontact;
			this.noticetype = noticetype;
			this.noticecontent = noticecontent;
			this.releasetime = releasetime;
			this.visitornum = visitornum;
			this.id = id;
			this.photoname = photoname;
			this.note = note;
			this.userid = userid;
			this.realname = realname;
			this.usernote = usernote;
		}

		// Property accessors

		public Integer getNoticeid() {
			return this.noticeid;
		}

		public void setNoticeid(Integer noticeid) {
			this.noticeid = noticeid;
		}

		public String getTitle() {
			return this.title;
		}
		
		public String getTitleIntercept() {
			String str = this.title;
			String str1 = str.substring(0, 6)+"......";
			return str1;
		}

		public void setTitle(String title) {
			this.title = title;
		}

		public String getAuthorcontact() {
			return this.authorcontact;
		}

		public void setAuthorcontact(String authorcontact) {
			this.authorcontact = authorcontact;
		}

		public Integer getNoticetype() {
			return this.noticetype;
		}

		public void setNoticetype(Integer noticetype) {
			this.noticetype = noticetype;
		}

		public String getNoticecontent() {
			return this.noticecontent;
		}

		public void setNoticecontent(String noticecontent) {
			this.noticecontent = noticecontent;
		}

		public String getReleasetime() {
			return this.releasetime;
		}

		public void setReleasetime(String releasetime) {
			this.releasetime = releasetime;
		}

		public Integer getVisitornum() {
			return this.visitornum;
		}

		public void setVisitornum(Integer visitornum) {
			this.visitornum = visitornum;
		}

		public Integer getId() {
			return this.id;
		}

		public void setId(Integer id) {
			this.id = id;
		}

		public String getPhotoname() {
			return this.photoname;
		}

		public void setPhotoname(String photoname) {
			this.photoname = photoname;
		}

		public String getNote() {
			return this.note;
		}

		public void setNote(String note) {
			this.note = note;
		}

		public String getUserid() {
			return this.userid;
		}

		public void setUserid(String userid) {
			this.userid = userid;
		}

		public String getRealname() {
			return this.realname;
		}

		public void setRealname(String realname) {
			this.realname = realname;
		}

		public String getUsernote() {
			return this.usernote;
		}

		public void setUsernote(String usernote) {
			this.usernote = usernote;
		}

}